<!-- INCLUDE GET STARTED BOX -->
	<?php include('catalog-cta.php'); ?>
<!-- END GET STARTED BOX -->

<div class="catalog-cat-block">
	<div class="catalog-parent-block">
    	<div class="catalog-parent-image"><?php the_post_thumbnail(); ?></div>
        <h2><?php the_title(); ?></h2>
        <p><?php the_excerpt(); ?></p>
        <p><a href="<?php the_permalink(); ?>" target="_blank">View Product Details</a> | <a href="<?php meta('docPagelink'); ?>" target="_blank">Documents &amp; Resources</a></p>
    </div>
    <div class="catalog-children-block">
    	<div class="catalog-children-title">
        	<h3>Available Models:</h3>
        </div>
        <div class="catalog-child-block catalog-child-title-block">
        	<div class="catalog-child-block-one">SKU / Model</div>
            <div class="catalog-child-block-two">Description</div>
            <div class="catalog-child-block-three">MSRP ($)</div>
        </div>
        	<? $pageChildren = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = ".$post->ID." AND post_type = 'page' ORDER BY menu_order", 'OBJECT'); ?>
			<? if ( $pageChildren ) : foreach ( $pageChildren as $pageChild ) : setup_postdata( $pageChild ); ?>
				<!-- PRODUCT DETAIL STUFF -->
				<div class="catalog-child-block">
					<div class="catalog-child-block-one"><?php meta('skumodel'); ?></div>
					<div class="catalog-child-block-two"><?php meta('shortdetails'); ?></div>
					<div class="catalog-child-block-three">$ <?php meta('msrp'); ?></div>
				</div>
			<? endforeach; endif; ?>
    </div>
</div>